package com.ncr.teradata.bireport;
import com.telecom.cms.util.Constant;

/**
 * InitParam.java
 * 初始化参数类
 *
 * @author ylpeng
 * @date Mar 12, 2007
 */
public class InitParam {
	//记录全省编码信息到地市编码中，如果在用户的CITY_ID='00',那么表示该用户是省级用户
	public static final String PROVINCECODE_IN_CITYCODE = Constant.getStPara("PROVINCEID");
	
	    
	//记录全市编码信息到区县编码中，如果在用户的COUNTRY_ID='0000',那么表示该用户是市级用户
	public static final String CITYCODE_IN_COUNTRYCODE = "";
	
	//数据库连接模式：1DBCP数据源、2CONTEXT数据源、3直连
	public static final String DB_CONNECTION_MODE = Constant.getStPara("DB_CONNECTION_MODE");
	
	//数据源名称
	public static final String DB_DATASOURCE_NAME = Constant.getStPara("DB_DATASOURCE_NAME");
	
	//数据库驱动名称
	public static final String DB_DRIVER = Constant.getStPara("DB_DRIVER");
	
	//数据库连接地址
	public static final String DB_URL = Constant.getStPara("CONNSTR");
	
	//数据库登陆用户名
	public static final String DB_USERNAME = Constant.getStPara("CONNUSER");
	
	//数据库登陆密码
	public static final String DB_PASSWORD = Constant.getStPara("CONNPASS");
	
	//所有本地网ID列表
	public static final String[] ALL_LATN_ID = Constant.getStPara("ALL_LATN_ID").split(",");
		//new String[]{"1001","1003","1004","1005","1006","1007","1008","1009","1010","1011","1012","1013","1014","1015","1016","1017","1018"};
	
	//报表配置文件名称（带路径）
	public static final String REPORT_CONF_FILE = "report-config-"+Constant.getStPara("PROVINCE")+".xml";
	public static final String CAMP_SETTING_FILE = "camp-setting-"+Constant.getStPara("PROVINCE")+".xml";
	public static final String PREVIEW_SETTING_FILE = "preview-setting-"+Constant.getStPara("PROVINCE")+".xml";
	
	//SQL语句中对一些关键字段别名取值的限定
	public static final String DIMENSION_ALIAS_INSQL_CITY = "LATN_ID";						//在SQL语句中代表“市”维度的别名
	public static final String DIMENSION_ALIAS_INSQL_COUNTRY = "TELECOM_AREA_ID";			//在SQL语句中代表“县”维度的别名
	public static final String DIMENSION_ALIAS_INSQL_CITY_NAME = "LATN_NAME";				//在SQL语句中代表“市”维度的别名（名称）
	public static final String DIMENSION_ALIAS_INSQL_COUNTRY_NAME = "TELECOM_AREA_NAME";	//在SQL语句中代表“县”维度的别名（名称）
	public static final String DIMENSION_ALIAS_INSQL_DATE = "DATE_ID";						//在SQL语句中代表“日期”维度的别名
	public static final String DIMENSION_ALIAS_INSQL_MONTH = "BILLING_CYCLE_ID";			//在SQL语句中代表“帐务月”维度的别名
}
